#include <windows.h>

#include "base/task_center.hpp"

class Test
{
public:
    void test1()
    {
        int a = 10;
    }

    void test2()
    {
        int a = 10;
    }
};

Test ttt;

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
{

    base::Singleton<base::TaskCenterUI>::Instance().PostTask(base::NewMethodTask(&ttt, &Test::test1));
    base::Singleton<base::TaskCenterUI>::Instance().PostTask(base::NewMethodTask(&ttt, &Test::test2));
    base::Singleton<base::TaskCenterUI>::Instance().Run();
    return 0;
}